package com.founder.chd_daily_query.repo.powerPlant;

import com.founder.chd_daily_query.entity.query.ConfigPowerStationAreaEntity;
import com.founder.chd_daily_query.entity.query.LandCoalPurchasingplanEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface PowerPlantRepo extends JpaRepository<ConfigPowerStationAreaEntity,String> {
    @Query(nativeQuery = true,value = "SELECT DISTINCT(AREA_NAME) as AREA_NAME FROM CONFIG_POWER_STATION_AREA")
    List<String> getArea();



}
